import axios from 'axios'
const request = axios.create({
  // 请求根路径
  baseURL: '/api'
})
export const getTianQiAPI = cityid => {
  return request.get('/simpleWeather/query', {
    // get请求的参数，要通过params提供
    params: {
      city: cityid,
      key: '4a4419a84dd367a964d98e9b7bb19323'
    }
  })
}
